<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%-- JSTL表达式（判断，循环，输出） --%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%-- 方法表达式（字符串截取，替换） --%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<c:forEach var="n" items="${pageBean.list}">
<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-right pet_hd_list">
    <a href="<%=basePath%>article/getArticleDetails/${n.articleId}" class="pet_hd_block">
        <div class="pet_hd_block_title">${n.articleTitle}</div>
        <div class="pet_hd_block_map" style="color: #999; height: 40px; overflow: hidden; text-overflow: ellipsis;">${n.articleAbstract}</div>
        <div class="pet_hd_block_tag" style="color: #999;">${n.createTime}</div>
    </a>
</li>
</c:forEach>

<c:if test="${pageBean.totalPage <= pageBean.currentPage}">
    <script>
        $("#loadNews").html('没有更多了').css("color","#ccc");
    </script>
</c:if>